package beans;

import java.util.logging.Logger;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import messaging.MyProducerRemote;

@ManagedBean
@SessionScoped
public class MyBean {

	@EJB
	MyProducerRemote mpr;
	
	final Logger logger = Logger.getLogger(MyBean.class.getName());

	public MyBean() {

	}

	public String produceMessage() {
		mpr.produceMessage();
		return "ok";
	}
	
}
